# 新建“exerc1”Python文件完成作业：编写一个员工类(Employee),
# 每次实例化该类后会自动记录+1，要求最后统计输出员工类总共实例化了多少对象。

class Employee:
    _num = 0

    def __init__(self):
        self.__class__._num += 1

    def printNum(self):
        print(self._num)

    def sayHello(self):
        print("hello Employee")


# a = Employee()
# a.printNum()
# b = Employee()
# b.printNum()
c = Employee()
# c.printNum()
c.sayHello()
